package com.zjf.fupload.ftp;
/**
 * @author zjf
 */
public class UploadException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private ErrorType type = ErrorType.unknow;
	
	public UploadException() {}
	
	public UploadException(String msg, Throwable cause) {
		super(msg, cause);
	}
	
	public UploadException(ErrorType type, String msg, Throwable cause) {
		super(msg, cause);
		this.type = type;
	}
	
	public ErrorType getType() {
		return this.type;
	}
	
	public static enum ErrorType {
		unknow,
		io,
	}

}
